
// API -------------------------------------------------------------

export const API_BORROW_PAGE: Api = {
  title: "借阅分页列表",
  path: "borrow/list",
  method: "POST",
  remark: "借还管理",
};
export const API_REPORT_LOST: Api = {
  title: "借阅报失",
  path: "borrow/reportLost",
  method: "POST",
  remark: "借还管理",
};
export const API_ORDER_PAGE: Api = {
  title: "预约分页列表",
  path: "order/list",
  method: "POST",
  remark: "借还管理",
};
export const API_OUT_RECORD_PAGE: Api = {
  title: "出库分页列表",
  path: "borrow/outList",
  method: "POST",
  remark: "借还管理",
};
export const API_ADD_OUT_RECORD_PAGE: Api = {
  title: "新增出库",
  path: "borrow/addOut",
  method: "POST",
  remark: "借还管理",
};
export const API_RETURN_RECORD_PAGE: Api = {
  title: "还书分页列表",
  path: "borrow/returnList",
  method: "POST",
  remark: "借还管理",
};
export const API_ADD_RETURN_RECORD_PAGE: Api = {
  title: "新增还书",
  path: "borrow/addReturn",
  method: "POST",
  remark: "借还管理",
};
// req
export interface ReqBorrowPage extends ReqPage {
  id?:number
  copyId?: number;
  userId?:number;
  title?:string
}

// API -------------------------------------------------------------

export const API_NEW_BORROW: Api = {
  title: "借阅图书",
  path: "borrow/add",
  method: "POST",
  remark: "借还管理",
};
export const API_BORROW_CANCEL: Api = {
  title: "借阅图书",
  path: "borrow/cancel",
  method: "POST",
  remark: "借还管理",
};
export const API_NEW_ORDER: Api = {
  title: "预约图书",
  path: "order/add",
  method: "POST",
  remark: "借还管理",
};
export const API_ORDER_CANCEL: Api = {
  title: "预约图书",
  path: "order/delete",
  method: "POST",
  remark: "借还管理",
};
// req
export interface ReqNewBorrow {
  id?: number;
  bookId?:number
  copyId?:number
}



